<?php

class memberzoneAddressesComponents extends myComponents{
	
	public function executeRender(){
		$this->shippingAddresses = $this->getShippingAddresses();
		$this->billingAddresses = $this->getBillingAddresses();
	}

	public function getShippingAddresses(){
		return Doctrine::getTable('PublicUserShippingAddress')->findByPublicUserId($this->getUser()->getObject()->getId());
	}

	public function getBillingAddresses(){
		return Doctrine::getTable('PublicUserBillingAddress')->findByPublicUserId($this->getUser()->getObject()->getId());
	}
	
}